#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2025/10/31 19:16
# @Author  : summer
# @Email   : 610658552@qq.com
# @File    : ser_sms_log.py
# @Software: PyCharm
# @Desc    :
from rest_framework import serializers

from ssms.models import SMSLog


class SMSLogSerializer(serializers.ModelSerializer):
    """
    SMSLog序列化器：
    """
    # 时间字段格式化
    send_time = serializers.DateTimeField(format="%Y-%m-%d %H:%M:%S", read_only=True)
    class Meta:
        model = SMSLog
        fields = '__all__'
